<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/pdfobject.min.js"></script>
</head>
<style>
    #ele{
        width: 500px;
        height: 500px;
    }
</style>
<body>
    <button onclick="bodysearch()">body查看</button>

    <button onclick="elesearch()">指定元素查看</button>
   
    <div id="ele">

    </div>
    <script>
        function bodysearch(){
            PDFObject.embed("./pdf/政治100个考点.pdf")
        }

        function elesearch(){
            PDFObject.embed("./pdf/政治100个考点.pdf","#ele")
        }
        
    </script>
</body>

</html>